const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // 获取用户头像
  avatar: state => state.user.userInfo.staffPhoto,
  // 获取用户名称
  name: state => state.user.userInfo.username,
  // 用户ID
  userId: state => state.user.userInfo.userId,
  companId: state => state.user.userInfo.companId,
  routes: state => state.permission.routes,
  userInfo: state => state.user.userInfo
};
export default getters;
